<template>
	<div id="LCAllVue" class="lc-main-wrap" @mousemove="touchmove">
		<div class="top-nav" v-bind:class="{ 'hiddenDiv': isHiddenTopAndBottomNav }">
			<NavigationBar :title="productName+'-'+chapterName" :defaultStyle="false" v-bind:class="{ 'hiddenDiv': isHiddenTopAndBottomNav }"
			 :backImgSrc="require('../resources/images/comm/back_white.png')">
			</NavigationBar>
		</div>
		<div class="lc-main-content" @click="clickSpaceArea">
			<div class="lc-hint-purse" v-if="isHintPurse">
				<span>当前章节需要购买后观看完整版</span>
				<span>观看广告后可免费阅读</span>
				</div>
			<section class="comic-pic-list-all">
				<ul class="comic-pic-list" data-cid="10" data-seq="1">
					<li class="comic-pic-item pic-loaded" v-for="(item,index) in pictures">
						<div class="comic-pic-pad" data-width="800" data-height="546"></div>
						<div class="comic-pic-box">
							<img v-bind:class="['comic-pic' ,'cur-img-index'+index]" :src="item.filepath" @load="imgloadHandle" @error="imgErrorHandle">
						</div>
					</li>
				</ul>
			</section>

			<div class="pic-load-Status" v-if="curLoadIndex < resources.length || isRequestingChapterInfo">
				<span>{{isRequestingChapterInfo ?"请求中":"加载中"}}</span>
				<div class="loader-inner ball-pulse">
					<div></div>
					<div></div>
					<div></div>
				</div>
		  </div>
			<div class="all"></div>
		</div>
		<div class="bottom-nav fix_iphonex" v-bind:class="{ 'hiddenDiv': isHiddenTopAndBottomNav }" v-bind:style="{ height: bottomBarHeight + 'px' }">
			<router-link class="logo-bottom" :to="{ path: '/'}">
				<img src="../resources/images/show/logo_white.png" height="30" />
			</router-link>
			<router-link class="logo-bottom" :to="{ path: '/CommentList', query: { productId: productId }}">
				<img src="../resources/images/show/comment_icon.png" height="30" />
			</router-link>
			<div class="bottom-nav-right">
				<a class="b-a" v-on:click="clickChptersBtn()">目录</a>
				<a v-on:click="clickNext()" class="b-a" v-bind:class="{ 'b-a-bad': nextChapterId<=0 }">下一话</a>
				<a v-on:click="clickUp()" class="b-a" v-bind:class="{ 'b-a-bad': upChapterId<=0 }">上一话</a>
			</div>
			<div class="lc-hintText">{{dragToBottomTimes == 1? "上拉进入下一话":this.curLoadIndex+"/"+resources.length}}</div>
		</div>
		<div id="wdCatalogueList" class="work-catalogue-list" v-bind:class="{ 'hiddenDiv': isHiddenTopAndBottomNav||isHiddenChapter }">

			<ul>
				<li class="more" v-if="!minPaginationVo.firstPage" @click="preCatalogBtnClick">
					<span>{{isRequesting?"加载中···":"向上加载更多"}}</span>
				</li>
				<li v-bind:class="[getChapterClassForLockOrUnlock(value)]" v-for="(value,index) in cataloguelist" :id="value.id == activeChapterId?'activedLi':''">
					<!-- <router-link v-bind:class="{ 'active': value.id == activeChapterId }" :to="{ path: '/LookComic', query: {charptId:value.id, productId: productId }}"> -->
					<a v-bind:class="{ 'active': value.id == activeChapterId }" v-on:click="clickJumpToChapter(value)">
						<span>{{ value.name }}</span>
						<span class="hint" v-if="value.coinPrice > 0">{{value.coinPrice}}金币</span>
					</a>

					<!-- </router-link> -->
				</li>
				<li class="more" v-if="!maxPaginationVo.lastPage" @click="nextCatalOgBtnClick" style="border-bottom: 0px;">
					<span>{{isRequesting?"加载中···":"向下加载更多"}}</span>
				</li>
			</ul>
		</div>
	</div>
</template>
<script>
	import NavigationBar from './pages/NavigationBar.vue'
	
	import $ from 'jquery'
	import HttpUtil from '../js/HttpUtil.js'
	import SLMUtil from '../js/SLMUtil.js'
	import SLMCommUI from '../js/SLMCommUI.js'
	import UserInfoManager from "../js/UserInfoManager.js"
	import AesUtil from "../js/AesUtil.js"
	import AppBridge from '../js/AppBridge.js'

	let lcVue =  {
		metaInfo() {
			return {
				title: '《' + this.productName + '》' + this.chapterName + '-在线漫画-神龙漫官方网站',
				meta: [{
					name: 'Keywords',
					content: this.productName + '漫画,' + this.productName + '全集,' + this.productName + '漫画全集,神龙漫' + this.productName +
						',' + this.chapterName + ',动漫,漫画,在线漫画阅读,神龙漫官方网站'
				}, {
					name: 'Description',
					content: '《' + this.productName + '》《' + this.chapterName + '》在线阅读，漫画《' + this.productName + '》'
				}]
			}
		},
		components: {
			NavigationBar
		},
		data() {
			return {
				productId: 0,
				isHiddenChapter: true,
				isHiddenTopAndBottomNav: false,
				activeChapterId: 0,
				pictures: [],
				resources: [],
				cataloguelist: [],
				nextChapterId: -1,
				upChapterId: -1,
				productName: '',
				chapterName: '',
				curLoadIndex: 0,
				isEnterNavScope: false,
				isEnterLoginView: false, //鼠标是否进入登录按钮视图
				isHintPurse: false,	// 是否提示购买
				defaultImg: require("../resources/images/show/custom.jpg"),
				paginationVo: {
					"pageSize": 100,
					"pageNo": 1,
					"firstResult": 0,
					"nextPage": 0,
					"prePage": 0,
					"totalCount": 0,
					"totalPage": 0,
					"firstPage": true,
					"lastPage": true
				}, //已经加载过的最大章节
				minPaginationVo: {
					"pageSize": 100,
					"pageNo": 1,
					"firstResult": 0,
					"nextPage": 0,
					"prePage": 0,
					"totalCount": 0,
					"totalPage": 0,
					"firstPage": true,
					"lastPage": true
				}, //目录
				maxPaginationVo: {
					"pageSize": 100,
					"pageNo": 1,
					"firstResult": 0,
					"nextPage": 0,
					"prePage": 0,
					"totalCount": 0,
					"totalPage": 0,
					"firstPage": true,
					"lastPage": true
				}, //目录
				isRequestingChapterInfo: false,
				isRequesting: false,
				navigationBarHeight: 44,
				bottomBarHeight: 50,
				timeDict:{"firstPicStartTime":0,"mountedTime":0},
				dragToBottomTimes:0,//拉到底部的次数，拉两次则直接进入下一页
				intervalDistance:0,
				isCanRunToBottom: true,
			}
		},
		mounted() {
			this.dragToBottomTimes = 0
			this.curLoadIndex = 0
			console.log("清空数据mounted")
			
			var timestamp=new Date().getTime(); 
			this.timeDict.mountedTime = timestamp
			this.timeOutHandle()
			
			let productId = this.$route.query.productId;
			this.productId = productId;

			let charptId = this.$route.query.charptId;
			this.activeChapterId = charptId;
			console.log("mounted获取到章节id："+this.activeChapterId)
			//观看界面可以缩放
			var viewports = document.getElementsByName("viewport");
			console.log("viewports=" + viewports);
			for (var i = 0; i < viewports.length; i++) {
				viewports[i].content = "width=device-width,initial-scale=1.0, minimum-scale=1.0";
			}
			//document.title = this.productName;			

			var pcInterval = 140
			let windowWidth = document.documentElement.clientWidth;
			let windowHeight = document.documentElement.clientHeight;
			console.log("windowHeight高度" + windowHeight)
			if (SLMCommUI.isMobile() && windowHeight >= 640) {
				console.log("检测到是手机，更改底部高度")
				pcInterval = 140 + 20
				this.bottomBarHeight = 70
			}
			let content = document.getElementById("wdCatalogueList")
			content.style.height = window.innerHeight - pcInterval + "px"
			window.onresize = function() {
				if(document.documentElement) {
					let windowHeight = document.documentElement.clientHeight;
					console.log("windowHeight高度" + windowHeight)
					let content = document.getElementById("wdCatalogueList")
					content.style.height = window.innerHeight - pcInterval + "px"
				}
			}
			console.log('*****监听滚动到底');
			//监听滚动到底
			window.addEventListener('scroll', this.handleScroll, true);
			window.appAdsPlayerComplete = this.appAdsPlayerComplete

			this.addChpterRecoder()//添加章节浏览记录
			this.requestChapterInfo()
			console.log("mounted完成。。")
		},
		beforeRouteLeave(to, from, next) {
			console.log("离开路由停止监听")
			window.onresize = null
			//离开路由停止监听
			window.removeEventListener('scroll', this.handleScroll, true);
			next();
		},
		methods: {
			getChapterClassForLockOrUnlock: function(item) {
				if (item.coinPrice > 0) {//当前章节收费
					if(item.isPurchased) {// 已购买
						return "unlock"
					}else {
						return "lock"
					}
				}
				return ""
			},
			currentChapterNeedPurse: function(chapter) {// 章节需要购买
				//需要付费
				//用户金币是否足够购买
				if(UserInfoManager.getInfo().coinCount > chapter.coinPrice) {
					console.log("金币足够--直接购买本章节")
					//足够扣取---请求购买此章节
					this.requestPurseChapter()
				}else{
					console.log("金币不够--去播放广告")
					//不够--去播放广告
					AppBridge.jsRequestNativieToplayerAdsCmd010(this.productId,this.activeChapterId,this.adPlayerComplete)
				}
			},
			appAdsPlayerComplete: function(){// app 内的广告播放完成
				//---请求购买此章节
				this.requestPurseChapter()
			},
			requestPurseChapter: function() {// 请求购买章节
			
			var params = new URLSearchParams();
			//chapterIdStr 多个章节逗号隔开
			let sessionKey = UserInfoManager.getInfo().userExt.sessionKey
			let dict = {"sessionkey":sessionKey,"chapterIdStr":""+this.activeChapterId}
			let jsonStr = JSON.stringify(dict)
			console.log("待加密："+jsonStr)
			let encry = AesUtil.encryptAES(jsonStr)
			params.append('encryParam',encry)
			this.isRequestingChapterInfo = true
			let that = this
			console.log('请求购买章节参数：'+ encry)
			HttpUtil.post('order/purchasechapter.do', params)
				.then(response => {
					if (response.data.code == 0) {
						console.log("章节购买成功:"+ JSON.stringify(response.data));
						
						UserInfoManager.save(response.data.data)
						
						//购买完成-请求章节图片
						that.requestChapterInfo()
					}else {
						console.log("购买章节出错："+ JSON.stringify(response.data));
					}
				})
				.catch(function(error) {
					that.isRequestingChapterInfo = false
					console.log(error);
				});
			},
			requestChapterInfo: function() {
				var params = new URLSearchParams();
				if (this.productId) {
					params.append('productId', this.productId);
				}
				if (this.activeChapterId) {
					params.append('chapterId', this.activeChapterId);
				}
				let sessionKey = UserInfoManager.getInfo().userExt.sessionKey
				params.append('sessionkey', sessionKey);
				params.append('pageNumber', '1');
				params.append('pageSize', '500');
				this.isRequestingChapterInfo = true
				let that = this
				console.log('请求章节详情参数：' + this.activeChapterId + 'pid:' + this.productId)
				HttpUtil.post('Chapter/detail_v1_1_2.do', params)
					.then(response => {
						// console.log('图片s：' + JSON.stringify(response.data));
						
						if (response.data.code == 0) {
							that.isRequestingChapterInfo = false
							//解密数据
							let enyData = AesUtil.decryptAES(response.data.enydata);
							let Chapt = JSON.parse(enyData);
							console.log("resultdecrypt:"+enyData);
							let info = Chapt.episodeVos[0];
							
							that.resources = info.resourceVos;
							if (that.resources.length > 0) {
								that.curLoadIndex = 0;
								var timestamp=new Date().getTime(); 
								that.timeDict.firstPicStartTime = timestamp
								that.pictures.push(that.resources[that.curLoadIndex]);
							}
							that.nextChapterId = Chapt.nextChapterId;
							that.upChapterId = Chapt.upChapterId;
							that.chapterName = Chapt.name;
							that.sortIndex = Chapt.sortIndex
							console.log('长度：' + that.pictures[0] + '\n');
							that.productName = Chapt.productName;
							
							if (Chapt.isPurchased || Chapt.coinPrice == 0) {
								if (Chapt.coinPrice == 0) {
									console.log("当前章节是免费章节")
								}else {
									console.log("当前章节已购买")
								}
								that.isHintPurse = false
							}else {//用户未购买当前章节
								that.isHintPurse = true
								console.log("当前章节需要购买")
								that.currentChapterNeedPurse(Chapt)
								//测试
								// that.requestPurseChapter()
							}
							
						}else {
							console.log("章节信息获取出错："+ JSON.stringify(response.data));
						}
					})
					.catch(function(error) {
						that.isRequestingChapterInfo = false
						console.log(error);
					});
			},
			rightBtnsClick: function(index) {
				console.log("点击导航栏：" + index)
				if (index == 0) {
					this.$router.push({
						path: '/WorkDetail',
						query: {
							productId: this.productId
						}
					}).catch(err => {err})
				}
			},
			clickSpaceArea: function(event) {
				this.isHiddenTopAndBottomNav = !this.isHiddenTopAndBottomNav;
				this.isHiddenChapter = true
				console.log('点击space')
				if (!this.isHiddenTopAndBottomNav) { //用户要求必须显示
					this.isUserMustShowNav = true;
				} else {
					this.isUserMustShowNav = false;
				}

			},
			clickJumpToChapter: function(item) {
				this.$router.replace({
					path: '/LookComic',
					query: {
						charptId: item.id,
						productId: this.productId
					}
				}).catch(err => {err})
			},
			clickNext: function() {
				if (this.nextChapterId > 0) {
					let that = this
					this.$router.replace({
						path: '/LookComic',
						query: {
							charptId: that.nextChapterId,
							productId: that.productId
						}
					}).catch(err => {err})
				}
			},
			clickUp: function() {
				if (this.upChapterId > 0) {
					let that = this
					this.$router.replace({
						path: '/LookComic',
						query: {
							charptId: that.upChapterId,
							productId: that.productId
						}
					}).catch(err => {err})
				}
			},
			addChpterRecoder: function() { //添加章节浏览记录

				if (!UserInfoManager.isLogined()) {
					return;
				}
				console.log('添加章节浏览记录：' + JSON.stringify(UserInfoManager.getInfo().userExt));
				let sessionKey = UserInfoManager.getInfo().userExt.sessionKey
				var params = new URLSearchParams();
				params.append('productId', this.productId);
				params.append('chpterId', this.activeChapterId);
				params.append('sessionkey', sessionKey);
				//console.log("添加章节浏览记录：params:"+this.productId)
				//console.log("添加章节浏览记录：params:"+this.activeChapterId)
				//console.log("添加章节浏览记录：sessionKey:"+sessionKey)
				//console.log("添加章节浏览记录：params:"+params)
				if (this.cataloguelist.length > 0) { //已经有目录数据
					return;
				}

				HttpUtil.post('/click/productAdd.do', params)
					.then(response => {
						console.log(JSON.stringify(response.data));

						if (response.data.code == 0) {
							console.log('添加浏览记录成功****');

						}
					})
					.catch(function(error) {
						console.log(error);
					});

			},
			preCatalogBtnClick: function() { //上一页
				if (this.isRequesting) {
					return
				}

				this.paginationVo.pageNo = this.minPaginationVo.prePage
				this.requestCatelogList("pre")
			},
			nextCatalOgBtnClick: function() { //下一页
				if (this.isRequesting) {
					return
				}
				this.paginationVo.pageNo = this.maxPaginationVo.nextPage
				this.requestCatelogList("next")
			},
			clickChptersBtn: function() { //点击目录
				console.log('点击chapter');
				this.isHiddenChapter = !this.isHiddenChapter;
				if (this.cataloguelist.length > 0 || this.isRequesting) { //已经有目录数据
					return;
				}
				//设置为当前章节所在的那一页
				this.paginationVo.pageNo = Math.floor((this.sortIndex - 1) / this.paginationVo.pageSize) + 1
				this.requestCatelogList("now")
			},
			//请求目录
			requestCatelogList: function(event) {
				this.isRequesting = true
				let sessionKey = UserInfoManager.getInfo().userExt.sessionKey
				var params = new URLSearchParams();
				params.append('productId', this.productId);
				params.append('pageNumber', this.paginationVo.pageNo);
				params.append('pageSize', this.paginationVo.pageSize);
				params.append('sessionkey', sessionKey);
				params.append('sortOrderModel', 0);//0正序 2为倒序
				console.log("request 目录参数：" + JSON.stringify(params))
				let that = this
				HttpUtil.post('Chapter/list_v1_1_2.do', params)
					.then(response => {
						console.log("目录数据：" + JSON.stringify(response.data));
						that.isRequesting = false
						if (response.data.code == 0) {
							let data = response.data;
							that.paginationVo = data.paginationVo;
							let enyData = AesUtil.decryptAES(response.data.enydata);
							var list = JSON.parse(enyData);
							//list[10].isPurchased = true
							console.log("章节信息:" + JSON.stringify(that.paginationVo))
							// 保留请求过的最小章节
							if (that.paginationVo.pageNo <= that.minPaginationVo.pageNo) {
								console.log("章节信息:更新最小章节" + that.paginationVo.pageNo)
								that.minPaginationVo = SLMUtil.copyProperties(that.paginationVo, that.minPaginationVo, true, true)
							}
							console.log("章节信息:当前cur:" + that.paginationVo.pageNo + "maxPage:" + that.maxPaginationVo.pageNo)
							// 保留请求过的最大章节
							if (that.paginationVo.pageNo >= that.maxPaginationVo.pageNo) {
								console.log("章节信息:更新最大章节成功" + that.paginationVo.pageNo)
								that.maxPaginationVo = SLMUtil.copyProperties(that.paginationVo, that.maxPaginationVo, true, true)
							}
							
							if (event == "now") { //获取当前目录
								that.minPaginationVo = SLMUtil.copyProperties(that.paginationVo, that.minPaginationVo, true, true)
								that.maxPaginationVo = SLMUtil.copyProperties(that.paginationVo, that.maxPaginationVo, true, true)
								that.cataloguelist = list;

								that.$nextTick(() => { //下次DOM更新执行
									console.log(document.getElementById("activedLi"))
									if (document.getElementById("activedLi")) {
										console.log("自动滚动。。。")
										document.getElementById("activedLi").scrollIntoView();
									} else {
										console.log("不自动滚动。。。11")
									}

								})
							} else if (event == "pre") { //上一页
								list = list.concat(that.cataloguelist)
								that.cataloguelist = list
							} else if (event == "next") {
								that.cataloguelist = that.cataloguelist.concat(list)
							}

							console.log('长度：' + list.length);



						}
					})
					.catch(function(error) {
						that.isRequesting = false
						console.log(error);
					});
			},
			handleScroll(e) {
				//console.log(e);
				if (!this.isHiddenChapter) {
					return;
				}

				//变量scrollTop是滚动条滚动时，距离顶部的距离
				 var screenTop1 = undefined
				 var screenTop2 = undefined
				 if (e.target.documentElement) {
				 	screenTop1 = e.target.documentElement.scrollTop
				 }else if(document.documentElement) {
				 	screenTop2 = document.documentElement.scrollTop
				 }
				 
				var scrollTop = screenTop1 || screenTop2 || window.pageYOffset ||
					document.body.scrollTop;
					
				if (screenTop == undefined) {
					console.log(e.target.documentElement.scrollTop)
					console.log(document.documentElement.scrollTop)
					console.log(scrollTop)
					console.log("出错：scrollTop == null")
					return
				}
				if(e.target.documentElement == undefined) {
					return
				}
				//变量windowHeight是可视区的高度
				var windowHeight = e.target.documentElement.clientHeight;
				//变量scrollHeight是滚动条的总高度
				var scrollHeight = e.target.documentElement.scrollHeight;
				//滚动条到底部的条件
				let interval = scrollHeight - (scrollTop + windowHeight)
				this.intervalDistance = interval
				if (scrollTop + windowHeight >= scrollHeight ) {//&& this.isCanRunToBottom
					//
					this.isCanRunToBottom = false
					this.isHiddenTopAndBottomNav = false;
					console.log('到达底部')
					// if (this.curLoadIndex == this.resources.length && this.curLoadIndex != 0 && (this.isHiddenChapter)) {
					// 	this.dragToBottomTimes = this.dragToBottomTimes + 1
					// }
					
					// if (this.dragToBottomTimes == 2) {
					// 	console.log("进入下一话："+this.curLoadIndex+"总："+this.resources.length)
					// 	this.dragToBottomTimes = 3
					// 	this.clickNext()
					// }
				} else if (scrollTop == 0) {
					this.isHiddenTopAndBottomNav = false;
				} else if (scrollTop > 0) {
					this.isHiddenTopAndBottomNav = true;
				}
				// if((scrollTop + windowHeight) < scrollHeight) {
				// 	this.isCanRunToBottom = true
				// }
			},
			imgloadHandle(e) {
				//let last = e.path.length -1
				//console.log("当前加载完的class："+e.path[last])
				let alreadyLoadIndex = this.curLoadIndex
				if (alreadyLoadIndex == 0) {
					var timestamp=new Date().getTime(); 
					let mountedTime = this.timeDict.mountedTime
					var timeInterval = (timestamp - mountedTime) /1000
					console.log("第一张图片出现耗时："+timeInterval+"秒")
					this.updateUserRefreshPageTime(timeInterval)
				}
				this.curLoadIndex++;
				if (this.curLoadIndex < this.resources.length) {
					console.log('加载第' + this.curLoadIndex + '张')
					this.pictures.push(this.resources[this.curLoadIndex]);
				}else if(this.curLoadIndex == this.resources.length) {
					this.dragToBottomTimes = 0
					console.log("清空数据,所有图片加载完成")
				}
			},
			imgErrorHandle(event) {
				// console.log(event)
				let img = event.srcElement;
				//这里再出错会触发无限循环
				img.src = this.defaultImg; // 这里赋值后又会走imgloadHandle
				img.onerror = null; //防止闪图
				// this.curLoadIndex++;
				// if (this.curLoadIndex < this.resources.length) {
				// 	console.log('加载第' + this.curLoadIndex + '张')
				// 	this.pictures.push(this.resources[this.curLoadIndex]);
				// }
			},
			timeOutHandle: function() {
				let that = this
				setTimeout(function () {
					// 这里就是处理的事件
					if (that.curLoadIndex == 0) {
						console.log("加载第一张图片超时-5秒")
						that.updateUserRefreshPageTime(10.11)
					}else {
						console.log("加载第一张图片未超时-5秒")
					}
				}, 10000);
			},
			updateUserRefreshPageTime:function(duration){
				if (!UserInfoManager.isLogined()) {
					return
				}
				let sessionkey = UserInfoManager.getInfo().userExt.sessionKey
				let productName = this.productName
				if (productName == '') {//为空则上传id
					productName = "id:"+this.productId+"chapterId:"+this.activeChapterId
				}
				
				let userAgent = SLMUtil.getUserAgent()
				console.log("获取到userAgent:"+userAgent)
				
				var params = new URLSearchParams();
				params.append('duration', duration);
				params.append('name', "观看"+productName+this.chapterName+"第一张图片耗时："+userAgent+"版本:"+HttpUtil.vueVersion);
				params.append('sessionkey', sessionkey);
				params.append('type', "2");
				
				console.log("request加载时长参数：" + JSON.stringify(params))
				let that = this
				HttpUtil.post('Statistics/userRequestDuration.do', params)
					.then(response => {
						console.log("提交加载时长完成：" + JSON.stringify(response.data));
					})
					.catch(function(error) {
						console.log(error);
					});
			},
			// 当鼠标移动时触发
			touchmove(e) {
				// 获取y 坐标
				// let mY = event.offsetY
				let mY = event.clientY;

				var windowHeight = SLMUtil.getClientHeight()
				if (mY < this.navigationBarHeight || mY >= windowHeight - this.bottomBarHeight) { //进入范围
					this.isHiddenTopAndBottomNav = false;
					this.isEnterNavScope = true;
				} else { //鼠标离开导航栏
					//用户没要求显示，且当前滚动条非滑到顶部或者底部则隐藏
					if (this.isEnterNavScope && this.isHiddenChapter && !this.isEnterLoginView) {
						this.isEnterNavScope = false;
						this.isHiddenTopAndBottomNav = true;
					}
				}
			},
			loginViewEvent: function(event) { //进入或者移出登录框
				if (event > 0) { //移进
					console.log("进入登录按钮视图。。。")
					this.isEnterLoginView = true;
				} else { //移出
					console.log("移出登录按钮视图。。。")
					// this.isEnterLoginView = false;
				}
			},
		}

	}
	
	export default lcVue
	
	//监听
	AppBridge.refreshUIAdPlayFinished = function(){
		//广告播放完成---请求购买此章节
		//使用tempVueData2去更新界面
		// lcVue.appAdsPlayerComplete()
		appAdsPlayerComplete()
	}
</script>

<style>
	@import "../css/LookComic.css";
	@import "../css/SLMComm.css";
	@import "../css/loader_animation.css";
</style>
